<template>
  <div v-if="$store.state.navflag">
      <van-tabbar v-model="active" route>
    <van-tabbar-item to="/home" icon="wap-home-o" badge="3">
        首页
    </van-tabbar-item>
    <van-tabbar-item to="/courselist" icon="apps-o">课程列表</van-tabbar-item>
    <van-tabbar-item to="/mycourse" icon="calendar-o">我的课程</van-tabbar-item>
      <van-tabbar-item to="/mine" icon="setting-o">个人中心</van-tabbar-item>
  </van-tabbar>
  </div>
</template>
<script>
import {login} from '../api/com'
export default {
  name:"tabbarcom",
  data(){
    return{
        active: 0,
      icon: {
        active: 'https://img01.yzcdn.cn/vant/user-active.png',
        inactive: 'https://img01.yzcdn.cn/vant/user-inactive.png',
      },
    }
  },
  mounted(){

  }
}
</script>
<style lang="less">
  
</style>